package com.zcqk.controller;

import java.util.UUID;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.zcqk.pojo.Account;
import com.zcqk.service.IAccountService;

@Controller
public class HelloController {
	@Resource(name = "accountService")
	private IAccountService iAccountService;

	@RequestMapping("/b")
	public String b(String username, HttpServletRequest request) {
		Account account = new Account();
		account.setaAccount("1211212");
		account.setaNiceName("namenicename");
		account.setaPassWord("12222222222222222312");
		try {
			iAccountService.inserAccount(account);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return "a";
	}

}
